<template>
  <el-button :size="data.size" :type="data.type" style="width: 100%;">{{data.name}}</el-button>
</template>
<script type="text/javascript">
export default {
  props: {
    value: {
      type: [Array, Object],
      default: function() {
        return {
          type: 'primary',
          size: 'medium',
          name: '按钮'
        }
      }
    }
  },
  computed: {
    data() {
      return this.value
    }
  },
  /**
   * 页面方法
   * @type {Object}
   */
  methods: {

  }
}

</script>
<style type="text/css" lang="scss">
</style>
